package com.gqzdev.xblog.service;


import com.gqzdev.xblog.entity.News;

import java.util.List;
import java.util.Map;



public interface NewsService {
	public int add(News news);
	public int edit(News news);
	public int delete(String ids);
	public int check(String ids);

	public List<News> findList(Map<String, Object> queryMap);
	public List<News> findListNoDel(Map<String, Object> queryMap);
	public int getTotal(Map<String, Object> queryMap);
	public int getTotalFront(Map<String, Object> queryMap);
	public News find(Long id);
	public int updateCommentNumber(Long id);
	public int updateViewNumber(Long id);
	public List<News> findLastCommentList(int pageSize);

	public List<News> findMostCommentList(int pageSize);
	public List<News> findLastNewsList(int pageSize);
}
